package com.dhkj.web.idf.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

public class MatchInfo implements Parcelable{
    @SerializedName("dish_id")
    private String dishId;

    @SerializedName("dish_name")
    private String dishName;

    @SerializedName("pan_id")
    private String panId;

    @SerializedName("pan_name")
    private String panName;

    private float similarity;

    public String getDishId() {
        return dishId;
    }

    public void setDishId(String dishId) {
        this.dishId = dishId;
    }

    public String getDishName() {
        return dishName;
    }

    public void setDishName(String dishName) {
        this.dishName = dishName;
    }

    public String getPanId() {
        return panId;
    }

    public void setPanId(String panId) {
        this.panId = panId;
    }

    public String getPanName() {
        return panName;
    }

    public void setPanName(String panName) {
        this.panName = panName;
    }

    public float getSimilarity() {
        return similarity;
    }

    public void setSimilarity(float similarity) {
        this.similarity = similarity;
    }

    public MatchInfo(Parcel in) {
        this.dishId = in.readString();
        this.dishName = in.readString();
        this.panId = in.readString();
        this.panName = in.readString();
        this.similarity = in.readFloat();
    }

    public static final Parcelable.Creator<MatchInfo> CREATOR = new Parcelable.Creator<MatchInfo>() {
        @Override
        public MatchInfo createFromParcel(Parcel in) {
            return new MatchInfo(in);
        }

        @Override
        public MatchInfo[] newArray(int size) {
            return new MatchInfo[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(this.dishId);
        parcel.writeString(this.dishName);
        parcel.writeString(this.panId);
        parcel.writeString(this.panName);
        parcel.writeFloat(this.similarity);
    }
}
